#include <math.h>
#include <stdio.h>

void main() {
  FILE * arq = NULL;
  int num, soma = 0, rs;
	
  if((arq = fopen("arq_601_3.txt","r")) != NULL) {
	while (!feof(arq)) {
	  rs = fscanf(arq, "%d", &num);
	  if(rs == 1) 				
		soma = soma + num;
	}
	printf("%d\n", soma); 
	fclose(arq);			
  }
}
